{extends 'admin/layout/table-main.tpl'}

{block title}渠道管理{/block}
{block smallTitle}系统内的渠道管理。{/block}

{block main}
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>渠道管理 <small>后台渠道来源编辑/添加</small></h5>
			</div>
			<div class="ibox-content">
				<form method="post" class="form-horizontal" action="{route('AdminSourceEditAction')}">
					{if $data}
					<div class="form-group">
						<label class="col-sm-2 control-label">#</label>
						<div class="col-sm-10">
							<p class="form-control-static">{$data.id}</p>
						</div>
					</div>
					{/if}
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-2 control-label">渠道名</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="name" value="{Input::old('name', $data.name)|escape}">
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-2 control-label">渠道别名</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="alias" value="{Input::old('alias', $data.alias)|escape}">
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-2">
							<input type="hidden" class="form-control" name="id" value="{$data.id}">
							<button class="btn btn-primary" type="submit">保存内容</button>
							<a class="btn btn-white" type="button" href="{route('AdminSourceList')}">返回</a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block}

{block script}
{/block}
